package ln.javatest.day05.Demo01;

public class Demo01Phone {
    public static void main(String[] args) {
        //根据Phone类创建一个名为one的对象
        //格式：类名称 对象名 = new 类名称（）；
        Phone one = new Phone();
        System.out.println(one.brand); //null
        System.out.println(one.price); //0.0
        System.out.println(one.color); //null

        one.brand = "苹果";
        one.price = 89.0;
        one.color = "黑色";
        System.out.println(one.brand); //苹果
        System.out.println(one.price); //89.0
        System.out.println(one.color); //黑色

        one.call("王嘉尔");
        one.sendMessage();

    }
}
